<?php 
/*<extend>*/ 
$direct=$_GET['direct'];   
define( 'NV_MAINFILE' ,'1');
require_once "config.php";
$link = mysql_connect($db_config['dbhost'], $db_config['dbuname'], $db_config['dbpass'] );
if (!$link) {die('Could not connect: ' . mysql_error());}
$db_selected = mysql_select_db($db_config['dbname'], $link);
if (!$db_selected) {die ('Can\'t use db : ' . mysql_error());}
$query="UPDATE nv3_shops_rows SET focus=1-focus WHERE id=".$_GET['id'];
$result=mysql_query($query);
mysql_close($link);      
header('Location:admin/index.php?nv=shops&op=items');
/*</extend>*/
?>


